package com.young.ysepay.controllers;

import com.young.ysepay.service.YsAsyncService;
import com.young.ysepay.utils.apiresult.ApiResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/5 8:29
 * @Des 银盛分账异步返回
 */
@RestController
@RequestMapping("/ysAsynchronousReturn")
public class YsAsyncController {
    private static Logger log = LoggerFactory.getLogger(YsController.class);
    @Autowired
    YsAsyncService ysAsyncService;
    /**
     * @Author zhaopengjun
     * @Description //银盛分账异步回执接口（一清）
     * @Date 15:12 2019/5/22
     * @Param [returnString]
     * @return java.lang.String
     **/
    @PostMapping("/asynchronousReturn")
    public void notifyRegistry(@RequestParam Map<String,String> paramMap, HttpServletResponse response){
         ysAsyncService.ysAsynchronousReturn(paramMap,response);

    }
}
